import os.path
import wx

# ---------- My Modules ---------- #
import Mayapad
from loadSetting import *


class MyApp_NoConsole(Mayapad.MyApp):
	def __init__(self, redirect=False, filename=LOGFILE_PATH):
		if not os.path.isfile(LOGFILE_PATH):
			f = open(LOGFILE_PATH, 'w')
			f.write('')
			f.close()
		wx.App.__init__(self, redirect=True, filename=LOGFILE_PATH)


if __name__ == '__main__':
	app =MyApp_NoConsole()
	app.MainLoop()
